package avicit.bdp.dgs.mdm.dto;

import avicit.bdp.core.constant.Constants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2023-12-14
 * @类说明：MdmMetricDTO
 * @修改记录：
 * @注意事项：
 * @主要功能：指标MetricDTO
 */
@Entity
public class MdmMetricDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 业务名称
     */
    @ApiModelProperty(value = "流程实例状态")
    private String name;

    /**
     * 业务值
     */
    @ApiModelProperty(value = "业务值")
    private Double value;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = Constants.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = Constants.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getValue() {
        return value;
    }

    public void setValue(Double value) {
        this.value = value;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
